package a.j;

import a.c.e;

import java.awt.*;
import java.util.Vector;

public class kb
  extends jb
{
  e p;
  Vector q;
  Color r;
  Color s;
  Color t;
  public static int u;
  
  public kb(pg parampg)
  {
    this(parampg, Color.white);
  }
  
  public kb(pg parampg, Color paramColor)
  {
    super(parampg);
    a(paramColor);
    this.q = new Vector(10);
  }
  
  public void a(double paramDouble)
  {
    this.q.add(new Double(paramDouble));
  }
  
  public void a(Vector paramVector)
  {
    this.q = paramVector;
  }
  
  public void a(int paramInt1, int paramInt2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    do
    {
      for (int i = 0; !bool1; i++)
      {
        if (i > paramInt1) {
          break;
        }
        a((i + 1) * paramInt2);
      }
    } while (bool2);
  }
  
  public void a(Color paramColor1, Color paramColor2)
  {
    this.r = paramColor1;
    this.s = paramColor2;
  }
  
  public void a(e parame)
  {
    this.p = parame;
  }
  
  public void a(Graphics2D paramGraphics2D, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    super.a(paramGraphics2D, paramInt1, paramInt2, paramInt3, paramInt4);
    if (!bool2)
    {
      if (this.p == null) {
        return;
      }
      if (bool2) {}
    }
    else
    {
      if (this.p.g() == null) {
        return;
      }
      paramGraphics2D.setColor(Color.black);
    }
    ld localld = this.g.a().w(this.p);
    int i = (int)localld.A();
    int j = (int)localld.B();
    if (!bool2) {
      if (this.q.size() == 0)
      {
        k = 100;
        do
        {
          if (k >= 1000) {
            break;
          }
          paramGraphics2D.drawOval(i - k / 2, j - k / 2, k, k);
          k += 100;
        } while (!bool1);
      }
    }
    int k = this.q.size() - 1;
    do
    {
      if (k < 0) {
        break;
      }
      int m = (int)((Double)this.q.get(k)).doubleValue();
      if (!bool2)
      {
        if ((this.r != null) && (this.s != null))
        {
          double d = 0.0D;
          if (!bool2) {
            if (this.q.size() != 1) {
              d = k / (this.q.size() - 1);
            }
          }
          int n = (int)(d * this.s.getRed() + (1.0D - d) * this.r.getRed());
          int i1 = (int)(d * this.s.getGreen() + (1.0D - d) * this.r.getGreen());
          int i2 = (int)(d * this.s.getBlue() + (1.0D - d) * this.r.getBlue());
          paramGraphics2D.setColor(new Color(n, i1, i2));
          paramGraphics2D.fillOval(i - m, j - m, 2 * m, 2 * m);
          if (bool2) {
            continue;
          }
          if (!bool1) {}
        }
        else
        {
          paramGraphics2D.setColor(Color.black);
        }
      }
      else {
        paramGraphics2D.drawOval(i - m, j - m, 2 * m, 2 * m);
      }
      k--;
    } while (!bool1);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.kb

 * JD-Core Version:    0.7.0.1

 */